using System;
using System.Data;
using System.Web.Configuration;
using System.Web;
using System.Web.Security;

internal static class Environment
{
	#region Static members
	static string AnonymousNickName
	{
		get
		{
			return WebConfigurationManager.AppSettings["AnonymousNickname"] ?? "Anonymous";
		}
	}

	public static string CurrentUserName
	{
		get
		{
			MembershipUser _mUser = Membership.GetUser();
			return null == _mUser ? AnonymousNickName : _mUser.UserName;
		}
	}

	public static HttpContext Context
	{
		get
		{
			return HttpContext.Current;
		}
	}
	#endregion Static members
}
